local M = {}

M.state = {
    progress = {
        value = 0,
        desc = "加载中"
    }
}

M.mutations = {
    set_progress = function(store, state, args)
        if args.value then
            state.progress.value = args.value
        end
        if args.desc then
            state.progress.desc = args.desc
        end
        store.emit("加载进度变更")
    end
}

return M